<?xml version="1.0" encoding="iso-8859-1"?>
<ui:composition
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:c="http://java.sun.com/jstl/core">
	<f:view>
		<a4j:loadStyle src="resource:///cssjs/template.css" />
		<f:loadBundle basename="mensagens" var="msg" />
		<c:if test="${empty tamanhoAuto}">
			<c:set var="tamanhoAuto" value="false" />
		</c:if>
		<c:if test="${empty largura}">
			<c:set var="largura" value="1" />
		</c:if>
		<c:if test="${empty altura}">
			<c:set var="altura" value="1" />
		</c:if>
		<c:if test="${empty rendered}">
			<c:set var="rendered" value="${true}" />
		</c:if>
		<rich:modalPanel rendered="${rendered}" id="${id}" autosized="${tamanhoAuto}" width="${largura}" height="${altura}">
			<f:facet name="header">
				<h:outputText value="${titulo}" />
			</f:facet>

			<f:facet name="controls">
				<h:panelGroup >
					<h:graphicImage value="/images/icons/close.png" id="hidelink${id}" styleClass="hidelink" title="#{msg.fr_fechar}"/>
					<rich:componentControl for="${id}" attachTo="hidelink${id}" operation="hide" event="onclick" disableDefault="true" />
				</h:panelGroup>
			</f:facet>

			<ui:insert/>
		</rich:modalPanel>
	</f:view>
</ui:composition>